<%@ Page Language="c#" ContentType="image/jpeg"%>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>
<%@ Import Namespace="System.Drawing.Imaging" %>
<%@ Import Namespace="System.Net" %>
<%
string url = Request.QueryString["url"].ToString();
System.Net.WebClient myWebClient = new System.Net.WebClient();
System.IO.Stream myStream = myWebClient.OpenRead(url);
System.IO.StreamReader sr = new System.IO.StreamReader(myStream);
string str = sr.ReadToEnd();
if(str.IndexOf(" src=http://")>0)
	str = str.Replace(" src=http://", " src=http://www.mourad.ws/image.aspx?url=http://");
else if (str.IndexOf(" src=/")>0)
	str = str.Replace(" src=/", " src=http://www.mourad.ws/image.aspx?url="+url);
else if (str.IndexOf(" src=\"../")>0)
	str = str.Replace(" src=\"../", " src=\"http://www.mourad.ws/image.aspx?url="+url+"/../../");
else if (str.IndexOf(" src=../")>0)
	str = str.Replace(" src=../", " src=http://www.mourad.ws/image.aspx?url="+url+"/../../");
else if (str.IndexOf(" src=")>0)
	str = str.Replace(" src=", " src=http://www.mourad.ws/image.aspx?url="+url);

Response.Write(str);
myStream.Close();
%>